package log

import (
	"github.com/pkg/errors"
	"second-go/config"
	"second-go/log/logrus"
)

type LogrusFactory struct{}

func (mf *LogrusFactory) Build(lc *config.LogConfig) error {
	err := logrus.RegisterLog(*lc)
	if err != nil {
		return errors.Wrap(err, "")
	}
	return nil
}